<script setup lang="ts">
import {computed} from 'vue';

import {cn} from '@/utils/shared/utils';

import {AccordionContent, type AccordionContentProps} from 'radix-vue';

const props = defineProps<{ class?: any } & AccordionContentProps>();

const delegatedProps = computed(() => {
  const {class: _, ...delegated} = props;

  return delegated;
});
</script>

<template>
  <AccordionContent
      v-bind="delegatedProps"
      class="data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm"
  >
    <div :class="cn('pb-4 pt-0', props.class)">
      <slot></slot>
    </div>
  </AccordionContent>
</template>
